package com.WebProject.control.AdminDao.Impl;

import com.WebProject.control.AdminDao.AdminControlDao;
import com.WebProject.pojo.t_brand;
import com.WebProject.pojo.t_car;
import com.WebProject.pojo.t_car_zu;
import com.WebProject.pojo.t_category;
import com.WebProject.service.AdminDao.AadminServiceDao;
import com.WebProject.service.AdminDao.impl.AdminServiceDaoImpl;

import java.util.ArrayList;

/**
 * @PACKAGE_NAME: com.WebProject.control.AdminDao.Impl
 * @NAME: AdminControlDaoImpl
 * @USER: ZhouYongCheng
 * @DATE: 2022/7/29
 * @TIME: 20:59
 * @Description: AdminControlDao 实现类
 */
public class AdminControlDaoImpl implements AdminControlDao {

    private AadminServiceDao mapper = new AdminServiceDaoImpl();

    @Override
    public t_car queryAppointCarInfo(String car_number) {
        return mapper.queryAppointCarInfo(car_number);
    }

    @Override
    public Boolean updateAppointCarInfo(t_car car) {
        return mapper.updateAppointCarInfo(car);
    }

    @Override
    public Boolean deleteAppointCar(String car_number) {
        return mapper.deleteAppointCar(car_number);
    }

    @Override
    public ArrayList<t_car_zu> queryAppointUserInfo(Integer user_id) {
        return mapper.queryAppointUserInfo(user_id);
    }

    @Override
    public ArrayList<t_car_zu> queryAppointAllCarInfo() {
        return mapper.queryAppointAllCarInfo();
    }

    @Override
    public Boolean addCar(t_car car) {
        return mapper.addCar(car);
    }

    @Override
    public ArrayList<t_car> QueryAllCarInfo() {
        return mapper.QueryAllCarInfo();
    }

    @Override
    public ArrayList<t_brand> QueryAllBrandInfo() {
        return mapper.QueryAllBrandInfo();
    }

    @Override
    public ArrayList<t_category> QueryAllCategoryInfo() {
        return mapper.QueryAllCategoryInfo();
    }


}
